package com.regex.web.entity.set;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.regex.web.common.excel.annotation.ExcelField;
import com.regex.web.entity.StrIdBaseEntity;

/**
 * <p>
 * 
 * </p>
 *
 * @author ocean.ma
 * @since 2019-07-22
 */
@TableName("t_banner")
public class BannerDTO extends StrIdBaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 标题
     */
    @TableField("name")
    private String name;

    /**
     * 图片url
     */
    @TableField("pic_url")
    private String picUrl;

    /**
     * 排序
     */
    @TableField("sort")
    private Integer sort;

    /**
     * 外链
     */
    @TableField("url")
    private String url;

    /**
     * 是否展示
     */
    @TableField("is_show")
    private String isShow;

    /**
     * 类型
     */
    @TableField("type")
    private String type;

    
    @ExcelField(title="标题", type=1, align=2 , sort=1)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    
    @ExcelField(title="图片url", type=1, align=2 , sort=2)
    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }
    
    @ExcelField(title="排序", type=1, align=2 , sort=3)
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
    
    @ExcelField(title="外链", type=1, align=2 , sort=4)
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    
    @ExcelField(title="是否展示", type=1, align=2 , sort=5)
    public String getIsShow() {
        return isShow;
    }

    public void setIsShow(String isShow) {
        this.isShow = isShow;
    }
    
    @ExcelField(title="类型", type=1, align=2 , sort=6)
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    protected Serializable pkVal() {
        return super.pkVal();
    }

    @Override
    public String toString() {
        return "BannerDTO{" +
        "name=" + name +
        ", picUrl=" + picUrl +
        ", sort=" + sort +
        ", url=" + url +
        ", isShow=" + isShow +
        ", type=" + type +
        "}";
    }
}
